<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:53:"/var/www/fish/application/crm/view/role/roleTree.html";i:1509157769;}*/ ?>

<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>小鱼ADMIN</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--link href="include/lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" /-->
    <link href="/public/static/lib/ui/bgcc.css" rel="stylesheet" type="text/css" />
    <link href="/public/static/lib/ui/default/tree.css" rel="stylesheet" type="text/css" />
    <link href="/public/static/lib/ui/default/treesabc.css" rel="stylesheet" type="text/css" />
    <link href="/public/static/lib/ui/icon.css" rel="stylesheet" type="text/css" />
    <script src="/public/static/lib/ui/jquery-1.8.0.min.js" type="text/javascript"></script>
    <script src="/public/static/lib/ui/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/bgadmin.js"></script>
<title>设置权限</title>
</head>
<body style="padding: 15px;">
    <form method="post" name="frm" id="frm" onsubmit="ajaxSubmit();return false;">
        <input name="module" type="hidden" value="department">
        <input name="action" type="hidden" value="ruleSet">
        <input name="r_id" type="hidden" id="id_r_id" value="<?php echo $id; ?>">

        <table width="98%"  class="roletable" cellspacing="2" bordercolor="#999999"  style="border-collapse:collapse;"> 
            <tr height="25">
                <td class="key">权限名称</td>
                <td style="padding-left:10px;"><?php echo $roleName; ?></td>
            </tr>
            <tr>
                <td valign="top" align="right" valign="middle" class="key" nowrap="nowrap" >
                    <table width="100%">
                        <tr>
                            <td colspan="2">
                                <label>全选<input type="checkbox" name="checkall" value="checkbox" id="id_selectAll" onchange="selectAll();" class="checkbox"></label>                         
                            </td>
                        </tr>
                        <tr>
                            <td class="tiao">
                                <a href="javascript:void(0);" onclick="expandAll();">全部展开</a>
                            </td>
                            <td>
                                <a href="javascript:void(0);" onclick="collapseAll();">全部折叠</a>
                            </td>
                        </tr>
                    </table>
                </td>
                <td valign="top" nowrap="nowrap">
                    <div>
                        <ul id="tt1" class="easyui-tree" data-options="animate:true,checkbox:true,animate:true,lines:true"></ul>
                    </div>
                </td>           
            </tr>
            
        </table>
        <br/>

        <input type="submit" name="Submit" value=" 提交 " id="Button" class="uibotton1">
        
    </form>
</body>
<script type="text/javascript" src="/public/static/crm/js/role/roleTree.js"></script>
<script type="text/javascript">
    $('#tt1').tree({
        data: <?php echo $strJSON; ?>
    });
</script>
</html>
